<?php 

$post_values = ( !empty($_POST) ) ? print_r($_POST,1) : 'none';
 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
<meta name="keywords" content="keywords, go, here" />
<meta name="description" content="a descripton of the page" />

<title>iframe concept</title>

<!-- internal style sheet -->
<style type="text/css">

/* BASIC LAYOUT */
html, body, table#shell { height:100%; }
body
{
 margin:0; padding:0;
 font-family:Arial, Helvetica, sans-serif;
 background:#fff;
 _text-align:center;
}
.page
{
 width:720px;
 margin:0 auto; padding:2px 0;
 background:#fff;
}
a { color:#666; }
a:hover { color:lime; text-decoration:none; }


/* Core Panel */
#core_panel
{
 width:720px;
 margin:0 auto;
}


/* Masthead Panel */
#masthead_panel h1
{
 margin:0;
 text-align:center;
 letter-spacing:.3em;
 font:normal 48px "Century Gothic", Futura, Arial, Verdana, sans-serif;
 color:#d9d9f3;
}


/* Footer Panel */
#footer_panel
{
 width:auto; clear:both;
 margin-top:4px; padding:4px;
 text-align:center;
 font:11px/1.4em Verdana, Geneva, sans-serif;
 border-top:1px solid #f3f3ff;
}
#footer_left { float:left; }
#footer_right { float:right; }

</style>
<!-- end internal style sheet -->



<!-- Iframe Javascript -->
<script type="text/javascript">
function iframe_test()
{
  var IframeObj = document.getElementById("GetPhpScript");
  IframeObj.src = "concept.iframe_call.php?u=test";
}
</script>



</head>
<!-- *** END DOCUMENT HEAD *** -->



<!-- *** START BODY *** -->
<body>

<!-- PAGE -->
<div class="page" id="page_scriptframe">

<div id="masthead_panel">
<h1>iframe concept</h1>
</div>


<div id="core_panel">


<!-- iframe -->
<iframe id="GetPhpScript"
  name="GetPhpScript"
  style="width:0px; height:0px; border: 0px">
</iframe>


<!-- User Input Form -->
<form id="outer_form" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<input type="text" name="user_name" value="user" />
<input type="password" name="user_pw" value="pw" />
</form>
<input type="submit" name="trigger_iframe" value="run iframe test" onclick="javascript:iframe_test()" />


<!-- Hash Form (that's submitted over network) -->
<script type="text/javascript">
document.write('<form id="hash_form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">');
document.write('</form>');
</script>


<h4>Post Values</h4>
<textarea rows="8" cols="60"><?php echo $post_values; ?></textarea>

</div>

<div id="footer">
</div>


<!-- end PAGE -->
</div>


<!-- Google Analytics -->

<!-- end Google Analytics -->


<!-- Close HTML -->
</body>
</html>
<!-- buffer flushed at Sun, 01 Jul 2007 16:13:11 -0700 -->

<!-- script [id: page_scriptframe] generated in 0.0010 s -->